# base image
FROM openjdk:17-jdk-alpine

WORKDIR /app/api

ENV APP=dataflow.jar

EXPOSE 8080

# set timezone
ENV TZ=UTC

# Copy source code
COPY build/dataflow.jar /app/api/

COPY scripts/*.sh /app/api/

RUN chmod +x *.sh

ENTRYPOINT ["java", "-jar", "dataflow.jar"]
